package com.crazypos.config;

import lombok.Getter;
import lombok.Setter;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Component
@Setter
@ConfigurationProperties(prefix = "upload")
public class UploadConfig {

    public static String assetRootDir;

    public static String allowImageExts;

    public static String resouceLocation;

    public void setAssetRootDir(String assetRootDir) {
        this.assetRootDir = assetRootDir;
    }

    public void setAllowImageExts(String allowImageExts) {
        this.allowImageExts = allowImageExts;
    }

    public void setResouceLocation(String resouceLocation) {
        this.resouceLocation = resouceLocation;
    }
}
